package com.Cychat.commons.entity.pojo;


import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("friend")
public class Friend {
    @Schema(description="好友ID")
    @TableId(value = "friend_id", type = IdType.AUTO)
    private Integer friendId;
    @Schema(description="用户ID")
    private Long userId;
    @Schema(description="好友用户ID")
    private Long friendUserId;
    @Schema(description="好友状态，0: 待确认, 1: 已通过, 2: 已拒绝, 3: 已删除")
    private Integer friendStatus;
    @Schema(description="好友备注名")
    private String friendRemark;
    @Schema(description="好友请求发送时间")
    private Date applyTime;
    @Schema(description="好友请求通过时间")
    private Date agreeTime;
    @Schema(description="创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @Schema(description="修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
